package com.depth.viewer.utils.json
{
	
	/**
	 * @example ActionScript to use JSONParseError: 
	 * <listing version="3.0">
	 * var message:String="";
	 * var location:int=0;
	 * var text:String="";
	 * var jSONParseError:JSONParseError = new JSONParseError(message,location,text);
	 * </listing>
	 *
	 **/
	
	public class JSONParseError extends Error
	{
		
		private  var _location:int;
		private var _text:String;
		
		public function JSONParseError(message:String="",location:int=0,text:String="")
		{
			super(message);
			name = "JSONParseError";
			this._location = location;
			this._text = text;
			return;
		}
		
		public function get location():int{
			
			return this._location;
		}
		
		public function get text():String{
			
			return this._text;
		}
	}
}